-
Notifications
You must be signed in to change notification settings - Fork 61
Question about onnx graph generation for differentiable QPLayer #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why do you want to unfold if you can compute forward and backward derivatives analytically? |
My main question is around if a model containing QPLayer would work with ONNX? We need to be able to convert the model to ONNX format primarily for inference. I tried exporting the model in the My initial intuition was that the QPLayer may not be supporting ONNX conversion, since ONNX is a static graph representation that may require the underlying QP solver iterations to be unfolded, but I may be wrong?
|
If QPLayer doesn't support ONNX conversion, my less than ideal alternative would be to skip the QPLayer during the ONNX graph conversion by splitting the model into 2 sub-graphs. And replace the QPLayer with the same formulation (with same solver settings) running using the proxqp c++ interface at inference time. But the manual burden of maintaining the python QP formulation and C++ formulation with proxqp in sync would be bad. Really appreciate your inputs here! |
Hi, first of all super excited about the using the capability for differentiable QPLayer in a neural network. My main question is whether the QPLayer is written in a way to support conversion to ONNX graph? Basically avoids dynamic control flow, so that the solver iterations can be unrolled easily?
The text was updated successfully, but these errors were encountered: